﻿using System.Collections.Generic;

namespace Collaboris.Saf.Definitions
{
    using System;

    using Utilities;

    [Serializable]
    public class SafClassDefinitionCollection : Dictionary<string, SafClassDefinition>
    {
        public SafClassDefinition Find(Type type)
        {
            string knownClassToTestFor = ActionReflector.Convert4PartTypeNameToKey(type);

            return this[knownClassToTestFor];
        }
    }
}